package com.xteam.ecsystem.service.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xteam.ecsystem.dao.MemberCommentsDao;

@Service
public class MemberCommentsService {

	@Autowired
	private MemberCommentsDao memberCommentsDao;

	public void delComments(String ids) {
		memberCommentsDao.delComments(ids);
	}

	public String getMemberCommentsList(int pageIndex, int pageSize,
			String bucName, String bucType, String sbucTime, String ebucTime,
			String bucState) {
		return memberCommentsDao.getMemberCommentsList(pageIndex, pageSize,
				bucName, bucType, sbucTime, ebucTime, bucState);
	}

	public String getCommentsReply(String id) {
		return memberCommentsDao.getCommentsReply(id);
	}

	public void updateComments(String id, String state) {
		memberCommentsDao.updateComments(id, state);
	}

	public void saveOrUpdateComments(Object obj, String id) {
		memberCommentsDao.saveOrUpdateComments(obj, id);
	}

	public String findCommentsById(String id) {
		return memberCommentsDao.findCommentsById(id);
	}
}
